mod video;
mod image;

mod video_func;
mod image_func;

use axum::{
    Router,
    routing::post
};

pub fn auth_routes() -> Router{
    Router::new()
    // 视频
    .route("/open_highgui",    post(video::open_highgui) )
    .route("/video_gray",      post(video::video_gray) )
    .route("/take_photo",      post(video::take_photo) )
    .route("/face",      post(video::face) )
    .route("/features",      post(video::features) )
    // 图像
    .route("/image_read",      post(image::image_read) )
}